package lab02.test15;

public class Test15 {
    public static void main(String[] args) {
    Graduate zhangsan = new Graduate(2000,3500);
     System.out.println("zhangsan学费以及收入："+zhangsan.getFee()+"， "+zhangsan.getPay());

     //判断该研究生是否需要贷款
        if(zhangsan.getPay() - zhangsan.getFee()<2000){
            System.out.println("You need a loan!");
        }else{
            System.out.println("You income is enough！");
        }

    }
}
